﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Windows;
using OMIP.HMS.WPFBusiness.HMSServiceReference;
using OMIP.HMS.WPFBusiness.View;

namespace OMIP.HMS.WPFBusiness
{
        public class GlobalManager : NotifyPropertyChangedObject
        {
                #region 构造函数

                private GlobalManager()
                {
                        Client = new HMSServiceClient();

                        

                        EmployeeManager = new EntityManager<Employee, EmployeeModel>();

                }

                #endregion 构造函数

                #region 属性

                #region 单例

                private static GlobalManager _instance;

                /// <summary>
                ///         获取机车管理器实例
                /// </summary>
                /// <value>
                ///         机车管理器实例
                /// </value>
                public static GlobalManager Instance
                {
                        get { return _instance ?? (_instance = new GlobalManager()); }
                }

                #endregion 单例

                #region 通讯

                public HMSServiceClient Client { get; set; }

                #endregion

                #region 界面

                

                #endregion

                #region 用户

                public EntityManager<Employee, EmployeeModel> EmployeeManager { get; private set; }

                public Employee LoginEmployee { get; set; }

                

                #endregion 用户

               

                
                #endregion 属性
        }
}